package com.chencs.common.lmadmin.controller;


import com.alibaba.fastjson.JSON;
import com.chencs.common.grant.controller.RoleController;
import com.chencs.common.lmadmin.service.LmMemberService;
import com.chencs.vo.biz.lianmeng.LmMember;
import com.chencs.vo.common.grant.RoleModel;
import framework.model.ResponseOptUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

@RestController
@RequestMapping("/m/lmMember")
public class LmMemberController  {

    Logger logger = LoggerFactory.getLogger(LmMemberController.class);

    /**
     *
     */

    @Autowired
    private LmMemberService service;

    @RequestMapping(value = "/getList", method = RequestMethod.POST, produces = "application/json; charset=UTF-8")
    public String memberList() {
        List<LmMember> memberList = service.member_list();
        return JSON.toJSON(memberList).toString();
    }

}
